package com.xiaoge.usemvpplugin.activity.main_activity;

import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.xiaoge.usemvpplugin.R;
import com.xiaoge.usemvpplugin.base_mvp.BaseMvpActivity;

public class MainActivity extends BaseMvpActivity<MainPresenter, MainModel> implements MainContract.View {

    private TextView tv_haha;

    @Override
    public void initView() {
        tv_haha = findViewById(R.id.tv_haha);
        tv_haha.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mPresenter.onHaHaClick(v);
            }
        });
    }

    @Override
    public int getLayoutResId() {
        return R.layout.activity_main;
    }

    @Override
    public void showLoading() {

    }

    @Override
    public void hideLoading() {

    }

    @Override
    public void showError() {

    }

    @Override
    public void showToast(String str) {
        Toast.makeText(this, str, Toast.LENGTH_LONG).show();
    }
}
